# Maintainer: Ariadne Conill <ariadne@dereferenced.org>
pkgname=rpki-client
pkgver=7.8
pkgrel=0
pkgdesc="RPKI validator to support BGP Origin Validation"
url="https://www.rpki-client.org/"
arch="all"
license="ISC"
depends="rsync"
makedepends="openssl-dev libretls-dev expat-dev fts-dev"
checkdepends=""
install="$pkgname.pre-install"
pkgusers="rpki-client"
pkggroups="rpki-client"
subpackages="$pkgname-doc"
source="https://cdn.openbsd.org/pub/OpenBSD/rpki-client/rpki-client-$pkgver.tar.gz"
builddir="$srcdir/rpki-client-$pkgver"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--with-user=rpki-client
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
649322fa4859eac871ea20d643806efb05f2ee4488b91063f7174eab5673c03eb367a92d54603d160e67716ba51cf155055a04b02ac6ff140ae526cc7ccdc165  rpki-client-7.8.tar.gz
"
